package com.ruoyi.project.charging.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.charging.mapper.CChargingProjectMapper;
import com.ruoyi.project.charging.domain.CChargingProject;
import com.ruoyi.project.charging.service.ICChargingProjectService;

/**
 * 充电项目数据Service业务层处理
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
@Service
public class CChargingProjectServiceImpl implements ICChargingProjectService 
{
    @Autowired
    private CChargingProjectMapper cChargingProjectMapper;

    /**
     * 查询充电项目数据
     * 
     * @param projectId 充电项目数据主键
     * @return 充电项目数据
     */
    @Override
    public CChargingProject selectCChargingProjectByProjectId(Long projectId)
    {
        return cChargingProjectMapper.selectCChargingProjectByProjectId(projectId);
    }

    /**
     * 查询充电项目数据列表
     * 
     * @param cChargingProject 充电项目数据
     * @return 充电项目数据
     */
    @Override
    public List<CChargingProject> selectCChargingProjectList(CChargingProject cChargingProject)
    {
        return cChargingProjectMapper.selectCChargingProjectList(cChargingProject);
    }

    /**
     * 新增充电项目数据
     * 
     * @param cChargingProject 充电项目数据
     * @return 结果
     */
    @Override
    public int insertCChargingProject(CChargingProject cChargingProject)
    {
        return cChargingProjectMapper.insertCChargingProject(cChargingProject);
    }

    /**
     * 修改充电项目数据
     * 
     * @param cChargingProject 充电项目数据
     * @return 结果
     */
    @Override
    public int updateCChargingProject(CChargingProject cChargingProject)
    {
        return cChargingProjectMapper.updateCChargingProject(cChargingProject);
    }

    /**
     * 批量删除充电项目数据
     * 
     * @param projectIds 需要删除的充电项目数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingProjectByProjectIds(Long[] projectIds)
    {
        return cChargingProjectMapper.deleteCChargingProjectByProjectIds(projectIds);
    }

    /**
     * 删除充电项目数据信息
     * 
     * @param projectId 充电项目数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingProjectByProjectId(Long projectId)
    {
        return cChargingProjectMapper.deleteCChargingProjectByProjectId(projectId);
    }
}
